package com.caregiver.watch.business.data.enums;

import lombok.Getter;

/**
 * @Description: 通话类型
 * @Author 疆戟
 * @Date 2025/9/20 10:50
 * @Version 1.0
 */
@Getter
public enum CallTypeEnum {
    /**
     *  普通通话  sos通话
     */
    NORMAL_CALL(1, "普通通话"),
    SOS_CALL(2, "sos通话");

    private final Integer code;
    private final String message;

    CallTypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static CallTypeEnum pares(Integer code) {
        for (CallTypeEnum value : CallTypeEnum.values()) {
            if (value.code.equals(code)) {
                return value;
            }
        }
        return null;
    }
}
